const filters = {
    // 回款单状态
    statusType(e) {
        if (e != "listReturn") {
            switch (e) {
                case "1":
                    return "已回款"
                case "2":
                    return "未回款"
                case "3":
                    return "部分回款"
                case "4":
                    return "未抵扣"
                case "5":
                    return "已抵扣"
                case "6":
                    return "抵扣中"
                case "7":
                    return "已付款"
                default:
                    return "暂无"
            }
        } else {
            return [{
                value: '',
                name: '全部'
            }, {
                value: '1',
                name: '已回款'
            }, {
                value: '2',
                name: '未回款'
            }, {
                value: '3',
                name: '部分回款'
            }, {
                value: '4',
                name: '未抵扣'
            },
            {
                value: '5',
                name: '已抵扣'
            },
            {
                value: '6',
                name: '抵扣中'
            },
            {
                value: '7',
                name: '已付款'
            },
            ]
        }
    },
    // 回款单状态(退款回款单列表)
    statusTypeRefund(e) {
        if (e != "listReturn") {
            switch (e) {
                case "4":
                    return "未抵扣"
                case "5":
                    return "已抵扣"
                case "6":
                    return "抵扣中"
                case "7":
                    return "已付款"
                default:
                    return "暂无"
            }
        } else {
            return [{
                value: '',
                name: '全部'
            }, {
                value: '4',
                name: '未抵扣'
            },
            {
                value: '5',
                name: '已抵扣'
            },
            {
                value: '6',
                name: '抵扣中'
            },
            {
                value: '7',
                name: '已付款'
            },
            ]
        }
    },
}

export default filters